
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <title>插件配置文件 · GitBook</title>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.0.0">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="plugin-review.html" />
    
    
    <link rel="prev" href="plugin-file.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    平台概念介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="plugin-intro.html">
            
                <a href="plugin-intro.html">
            
                    
                    指标开发简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="plugin-file.html">
            
                <a href="plugin-file.html">
            
                    
                    插件目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="plugin-conf.html">
            
                <a href="plugin-conf.html">
            
                    
                    插件配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="plugin-review.html">
            
                <a href="plugin-review.html">
            
                    
                    插件开发说明
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="explain-intro.html">
            
                <a href="explain-intro.html">
            
                    
                    指标开发讲解
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="explain-bootstrap.html">
            
                <a href="explain-bootstrap.html">
            
                    
                    指标核心逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="explain-property1.html">
            
                <a href="explain-property1.html">
            
                    
                    指标通用属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="explain-property2.html">
            
                <a href="explain-property2.html">
            
                    
                    指标自定义属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="explain-event.html">
            
                <a href="explain-event.html">
            
                    
                    指标钻取事件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="explain-summary.html">
            
                <a href="explain-summary.html">
            
                    
                    指标开发总结
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >插件配置文件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x63D2;&#x4EF6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x63D2;&#x4EF6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h1>
<hr>
<h2 id="configjson-&#x63D2;&#x4EF6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">config.json &#x63D2;&#x4EF6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h2>
<p>app/plugins&#x76EE;&#x5F55;&#x4E0B;&#x6709;&#x4E00;&#x4E2A;<code>config.json</code>&#x6587;&#x4EF6;&#xFF0C;&#x6B64;&#x6587;&#x4EF6;&#x5B58;&#x50A8;&#x4E86;&#x6240;&#x6709;&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x91CD;&#x70B9;&#x63CF;&#x8FF0;&#x4E86;&#x8DEF;&#x5F84;&#x7B49;&#x5185;&#x5BB9;&#x3002;</p>
<ul>
<li><p>&#x914D;&#x7F6E;&#x4FE1;&#x606F;json&#x5BF9;&#x8C61;&#x7684;&#x5C5E;&#x6027;<code>controls</code>&#x5B58;&#x50A8;&#x4E86;&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x7684;&#x96C6;&#x5408;&#x4FE1;&#x606F;&#xFF08;&#x5176;&#x4ED6;&#x5C5E;&#x6027;&#x4E5F;&#x5F88;&#x5BB9;&#x6613;&#x901A;&#x8FC7;&#x540D;&#x79F0;&#x8BC6;&#x522B;&#x51FA;&#x6765;&#x5177;&#x4F53;&#x4F5C;&#x7528;&#xFF09;&#x3002;</p>
</li>
<li><p>&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x652F;&#x6301;&#x6309;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x8FDB;&#x884C;&#x5206;&#x7EC4;&#xFF0C;&#x5176;&#x4E2D;<code>type</code>&#x63CF;&#x8FF0;&#x4E86;&#x5206;&#x7EC4;&#x7C7B;&#x578B;&#xFF0C;&#x4E0E;<code>type</code>&#x540C;&#x7EA7;&#x7684;<code>controls</code>&#x5B58;&#x50A8;&#x4E86;&#x6B64;&#x5206;&#x7EC4;&#x4E0B;&#x7684;&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x96C6;&#x5408;&#x3002;</p>
</li>
<li><p>&#x96C6;&#x5408;&#x4E2D;&#x6307;&#x6807;&#x5BF9;&#x8C61;&#x7684;<code>path</code>&#x5C5E;&#x6027;&#x63CF;&#x8FF0;&#x4E86;&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x7684;&#x76F8;&#x5BF9;&#x5B58;&#x50A8;&#x8DEF;&#x5F84;&#xFF08;&#x76F8;&#x5BF9;&#x4E8E;app/plugins&#x76EE;&#x5F55;&#x800C;&#x8A00;&#xFF09;&#x3002;<code>name</code>&#x5C5E;&#x6027;&#xFF08;&#x975E;&#x5FC5;&#x9700;&#xFF09;&#x63CF;&#x8FF0;&#x4E86;&#x63D2;&#x4EF6;&#x540D;&#x79F0;&#x3002;</p>
</li>
</ul>
<p><em>controls&#x5C5E;&#x6027;&#x7ED3;&#x6784;&#xFF1A;</em></p>
<pre><code>&quot;controls&quot;: [
    {
      &quot;type&quot;: &quot;&#x901A;&#x7528;&#x63A7;&#x4EF6;&quot;,
      &quot;controls&quot;: [
        {
          &quot;name&quot;: &quot;&#x67F1;&#x56FE;&#x63A7;&#x4EF6;&quot;,
          &quot;path&quot;: &quot;controls/echarts/ebar&quot;
        },
        {
          &quot;name&quot;: &quot;&#x997C;&#x56FE;&#x63A7;&#x4EF6;&quot;,
          &quot;path&quot;: &quot;controls/echarts/epie&quot;
        }
      ]
    }
]
</code></pre><p><em>&#x4E0B;&#x9762;&#x662F;&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x7684;&#x63D2;&#x4EF6;&#x6E05;&#x5355;&#x4FE1;&#x606F;&#xFF0C;&#x4EC5;&#x4F9B;&#x53C2;&#x8003;&#xFF1A;</em></p>
<pre><code>{
  &quot;name&quot;: &quot;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&quot;,
  &quot;version&quot;: &quot;0.1.0&quot;,
  &quot;description&quot;: &quot;&#x6307;&#x6807;&#x63A7;&#x4EF6;&#x914D;&#x7F6E;&quot;,
  &quot;author&quot;: &quot;FreezeSoul&lt;freezesoul@gmail.com&gt;&quot;,
  &quot;controls&quot;: [
    {
      &quot;type&quot;: &quot;&#x901A;&#x7528;&#x63A7;&#x4EF6;&quot;,
      &quot;controls&quot;: [
        {
          &quot;name&quot;: &quot;ebar&quot;,
          &quot;path&quot;: &quot;controls/echarts/ebar&quot;
        },
        {
          &quot;name&quot;: &quot;epie&quot;,
          &quot;path&quot;: &quot;controls/echarts/epie&quot;
        }
      ]
    },
    {
      &quot;type&quot;: &quot;&#x6F14;&#x793A;&#x63A7;&#x4EF6;&quot;,
      &quot;controls&quot;: [
        {
          &quot;name&quot;: &quot;webgl-globe&quot;,
          &quot;path&quot;: &quot;demo/webgl-globe&quot;
        },
        {
          &quot;name&quot;: &quot;echart3-treemap&quot;,
          &quot;path&quot;: &quot;demo/echart3-treemap&quot;
        },
        {
          &quot;name&quot;: &quot;property-demo&quot;,
          &quot;path&quot;: &quot;project/property-demo&quot;
        }
      ]
    },
    {
      &quot;type&quot;: &quot;&#x9879;&#x76EE;&#x63A7;&#x4EF6;&quot;,
      &quot;controls&quot;: [
        {
          &quot;name&quot;: &quot;test&quot;,
          &quot;path&quot;: &quot;project/test&quot;
        }
      ]
    }
  ]
}
</code></pre><h2 id="manifestjson-&#x63D2;&#x4EF6;&#x6E05;&#x5355;&#x6587;&#x4EF6;">manifest.json &#x63D2;&#x4EF6;&#x6E05;&#x5355;&#x6587;&#x4EF6;</h2>
<p>&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x76EE;&#x5F55;&#x4E0B;&#x7684;<code>manifest.json</code>&#x6587;&#x4EF6;&#x4F5C;&#x4E3A;&#x63D2;&#x4EF6;&#x7684;&#x81EA;&#x63CF;&#x8FF0;&#x6587;&#x4EF6;&#xFF0C;&#x63CF;&#x8FF0;&#x4E86;&#x63D2;&#x4EF6;&#x8FD0;&#x884C;&#x6240;&#x9700;&#x7684;&#x4FE1;&#x606F;&#x3002;</p>
<ul>
<li>uid&#xFF1A;&#x63CF;&#x8FF0;&#x4E86;&#x63D2;&#x4EF6;&#x7684;&#x552F;&#x4E00;id&#x4FE1;&#x606F;&#xFF0C;&#x8981;&#x6C42;&#x5728;&#x6574;&#x4E2A;&#x63D2;&#x4EF6;&#x96C6;&#x5408;&#x4E2D;&#x552F;&#x4E00;&#xFF0C;&#x5728;&#x63D2;&#x4EF6;&#x63D0;&#x4EA4;&#x540E;&#x4E0D;&#x5EFA;&#x8BAE;&#x4FEE;&#x6539;&#xFF0C;&#x8FD9;&#x5C06;&#x5F71;&#x54CD;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x63D2;&#x4EF6;&#x3002;</li>
<li>name&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x4E2D;&#x6587;&#x663E;&#x793A;&#x540D;&#x79F0;&#x3002;</li>
<li>icon&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x56FE;&#x6807;&#x6587;&#x4EF6;&#x8DEF;&#x5F84;&#x3002;</li>
<li>author&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x5F00;&#x53D1;&#x8005;&#x3002;</li>
<li>version&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x7248;&#x672C;&#x7F16;&#x53F7;&#x3002;</li>
<li>description&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x63CF;&#x8FF0;&#x4FE1;&#x606F;&#x3002;</li>
<li>bootstrap&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x542F;&#x52A8;&#x5165;&#x53E3;javascript&#x6587;&#x4EF6;&#x3002;</li>
<li>editorJs&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;javascript&#x6587;&#x4EF6;&#xFF08;&#x81EA;&#x5B9A;&#x4E49;&#x7279;&#x6B8A;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x529F;&#x80FD;&#xFF0C;&#x57FA;&#x672C;&#x5C5E;&#x6027;&#x53EF;&#x901A;&#x8FC7;&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#xFF09;&#x3002;---&#x975E;&#x5FC5;&#x9700;&#xFF0C;&#x65B0;&#x7248;&#x672C;&#x53EF;&#x79FB;&#x9664;</li>
<li>editorTpl&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;html&#x6A21;&#x677F;&#x6587;&#x4EF6;&#xFF08;&#x914D;&#x5408;editorJs&#x4F7F;&#x7528;&#xFF0C;&#x5982;&#x65E0;&#x5C5E;&#x6027;&#x53EF;&#x4E3A;&#x7A7A;&#xFF09;&#x3002;---&#x975E;&#x5FC5;&#x9700;&#xFF0C;&#x65B0;&#x7248;&#x672C;&#x53EF;&#x79FB;&#x9664;</li>
<li>editorCss&#xFF1A;&#x63D2;&#x4EF6;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;css&#x6837;&#x5F0F;&#x6587;&#x4EF6;&#xFF08;&#x914D;&#x5408;editorJs&#x4F7F;&#x7528;&#xFF0C;&#x5982;&#x65E0;&#x5C5E;&#x6027;&#x53EF;&#x4E3A;&#x7A7A;&#xFF09;&#x3002;---&#x975E;&#x5FC5;&#x9700;&#xFF0C;&#x65B0;&#x7248;&#x672C;&#x53EF;&#x79FB;&#x9664;</li>
</ul>
<p><em>ebar&#x7684;&#x63D2;&#x4EF6;&#x6E05;&#x5355;&#x4FE1;&#x606F;&#xFF1A;</em></p>
<pre><code>{
  &quot;uid&quot;: &quot;ebar&quot;,
  &quot;name&quot;: &quot;&#x67F1;&#x72B6;/&#x6298;&#x7EBF;/&#x9762;&#x79EF;&#x56FE;&quot;,
  &quot;icon&quot;: &quot;images/icon.png&quot;,
  &quot;author&quot;: &quot;FreezeSoul&lt;freezesoul@gmail.com&gt;&quot;,
  &quot;version&quot;: &quot;0.1.0&quot;,
  &quot;description&quot;: &quot;&#x67F1;&#x72B6;&#x3001;&#x6298;&#x7EBF;&#x3001;&#x9762;&#x79EF;&#x3001;&#x6563;&#x70B9;&#x56FE;&#x56DB;&#x5408;&#x4E00;&quot;,
  &quot;bootstrap&quot;: &quot;ebar.js&quot;,
  &quot;editorJs&quot;:&quot;editor/editor.js&quot;,&#xFF08;&#x975E;&#x5FC5;&#x987B;&#xFF09;
  &quot;editorTpl&quot;:&quot;editor/editor.tpl.html&quot;,&#xFF08;&#x975E;&#x5FC5;&#x987B;&#xFF09;
  &quot;editorCss&quot;:&quot;editor/editor.css&quot;&#xFF08;&#x975E;&#x5FC5;&#x987B;&#xFF09;
}
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="plugin-file.html" class="navigation navigation-prev " aria-label="Previous page: 插件目录结构">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="plugin-review.html" class="navigation navigation-next " aria-label="Next page: 插件开发说明">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"插件配置文件","level":"1.2.2","depth":2,"next":{"title":"插件开发说明","level":"1.2.3","depth":2,"path":"plugin-review.md","ref":"plugin-review.md","articles":[]},"previous":{"title":"插件目录结构","level":"1.2.1","depth":2,"path":"plugin-file.md","ref":"plugin-file.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"plugin-conf.md","mtime":"2018-08-30T06:09:31.693Z","type":"markdown"},"gitbook":{"version":"3.0.0","time":"2018-08-30T06:38:59.990Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/buttons.js"></script>
        
    

    </body>
</html>

